module.exports = app => {
    return async (ctx, next) => {
        console.log("连接了")
        await next();
        //执行时断开
        console.log('断开连接了!')
    }
}